﻿<!DOCTYPE html>
<html>
     <head>
          <meta charset="UTF-8">
          <title></title>
     </head>
	 <script src="js/base.js"></script>
	 <script type="text/javascript">
		function cal(){
			var oInput = document.getElementById("searchinput");
			
			var d = new Date();
			d.setTime( Date.parse(oInput.value) );
			
			var now = new Date();
			
			console.log(   betweenDate(d,now)   );
			
		}
     </script>
     <body>
         <input type="text" id="searchinput" class="searchinput" placeholder="请输入日期"/>
		 <button onclick="cal()">计算</button>
     </body>

</html>
